<!DOCTYPE html>
<html>
	<head>
		<title></title>
	</head>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
	<body>
		<div style="text-align:center">
			<p style = "font-size:40px;" , id="text">点击下方按钮</p>
			<button onclick="myFunction()" style="font-size:20px;background-color: orange;color: white;">点击获取随机数</button>
		</div>
		<script>
			function myFunction()
			{
				document.getElementById("text").innerText = parseInt(Math.random()*100);
			}
		</script>
	</body>
</html>
